import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router';
import Home from '@/views/home/index.vue';
import List from '@/views/list/index.vue';
import Detail from '@/views/detail/index.vue';

const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "Home",
    component: Home
  },
  {
    path: "/list",
    name: "List",
    component: List
  },
  {
    path: "/detail",
    name: "Detail",
    component: Detail
  }
];

const router = createRouter({
  history: createWebHashHistory(),
  routes
});

export default router;
